package zhu.areas.match.data;

import java.util.Date;

import zhu.areas.user.data.User;

/**
 * @hibernate.class table="T_Sponsor" dynamic-insert="true" lazy="false"
 *                  dynamic-update="true"
 * @author Administrator
 * 
 */
public class Sponsor implements java.io.Serializable {

	private int id; // ID
	private CompApp compApp; // 大赛ID
	private User sponsor; // 赞助方ID
	private String contact;

	
	private String sponsorName;// 赞助方名称
	private Date SponTime; // 赞助时间
	private int moneySupport; // 赞助金额
	private String extraSupport; // 其他赞助

	public Sponsor(){
		
	}
	public Sponsor(int id){
		this.id=id;
	}
	/**
	 * @hibernate.id column="ID" generator-class="increment"
	 *               unsaved-value="null"
	 * @return
	 */
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @hibernate.many-to-one class="zhu.areas.match.data.CompApp"
	 *                        not-null="true" column="CompID"
	 */
	public CompApp getCompApp() {
		return compApp;
	}

	public void setCompApp(CompApp compApp) {
		this.compApp = compApp;
	}

	
	/** 
	*@hibernate.many-to-one class="zhu.areas.user.data.User"	  not-null="true"
	* column="SponsorID" 
	*/
	public User getSponsor() {
		return sponsor;
	}

	public void setSponsor(User sponsor) {
		this.sponsor = sponsor;
	}

	/**
	 * @hibernate.property column = "SponsorName"
	 * @return
	 */
	public String getSponsorName() {
		return sponsorName;
	}

	public void setSponsorName(String sponsorName) {
		this.sponsorName = sponsorName;
	}

	/**
	 * @hibernate.property column = "SponTime"
	 * @return
	 */
	public Date getSponTime() {
		return SponTime;
	}

	public void setSponTime(Date sponTime) {
		SponTime = sponTime;
	}

	/**
	 * @hibernate.property column = "MoneySupport"
	 * @return
	 */
	public int getMoneySupport() {
		return moneySupport;
	}

	public void setMoneySupport(int moneySupport) {
		this.moneySupport = moneySupport;
	}

	/**
	 * @hibernate.property column = "ExtraSupport"
	 * @return
	 */
	public String getExtraSupport() {
		return extraSupport;
	}

	public void setExtraSupport(String extraSupport) {
		this.extraSupport = extraSupport;
	}
	/**
	 * @hibernate.property column = "Contact"
	 * @return
	 */
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}


}
